﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="register.ascx.cs" Inherits="Incubator.register" %>



<table runat=server id="logintable" visible=true>
        <tr>
            <td>
                Username:
            </td>
            <td>
                <asp:TextBox ID="userName" runat="server" MaxLength="20" 
                    ontextchanged="userName_TextChanged1" style="margin-bottom: 0px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="Username_RegularExpressionValidator" 
                    runat="server" ControlToValidate="userName" ErrorMessage="Invalid Username" 
                    ValidationExpression="^[A-Za-z0-9]{1,20}"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Password:</td>
            <td>
                <asp:TextBox ID="passWord" runat="server" Height="25px" TextMode="Password" 
                    MaxLength="20"></asp:TextBox>
                <asp:RegularExpressionValidator ID="PW_RegularExpressionValidator" 
                    runat="server" ControlToValidate="passWord" ErrorMessage="Invalid Password" 
                    ValidationExpression="^[A-Za-z0-9]{6,20}"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Confirm Password:</td>
            <td>
                <asp:TextBox ID="confirmPassword" runat="server" TextMode="Password" 
                    MaxLength="20"></asp:TextBox>
                <asp:RegularExpressionValidator ID="PW_RegularExpressionValidator0" 
                    runat="server" ControlToValidate="confirmPassword" 
                    ErrorMessage="Invalid Password" ValidationExpression="^[A-Za-z0-9]{1,20}"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                First Name:</td>
            <td>
                <asp:TextBox ID="Fname" runat="server" MaxLength="30"></asp:TextBox>
                <asp:RegularExpressionValidator ID="Username_RegularExpressionValidator0" 
                    runat="server" ControlToValidate="Fname" ErrorMessage="Invalid Firstname" 
                    ValidationExpression="^[A-Za-z\s'-]{1,30}"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Last Name:</td>
                
            <td>
                <asp:TextBox ID="Lname" runat="server" MaxLength="30"></asp:TextBox>
                <asp:RegularExpressionValidator ID="Username_RegularExpressionValidator1" 
                    runat="server" ControlToValidate="Lname" ErrorMessage="Invalid Lastname" 
                    ValidationExpression="^[A-Za-z\s'-]{1,30}"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td  colspan="2">
                <asp:Label ID="warningMessage" runat="server" ForeColor="#FF3300"></asp:Label>
                </td>
        </tr>
        <tr>
            <td  colspan="2" class="style9">
                <asp:Button ID="registerButton" runat="server" Text="Register" 
                    onclick="registerButton_Click" />
                </td>
        </tr>
    </table>
<p>
    &nbsp;</p>

